@seatSizeNum: 40;
@seatRowPaddingNum: 50;
@seatSize: @seatSizeNum * 1px;
@picScreenHeight: 50px;
@picCenterHeight: 74px;

.seatRender{
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header{
  width: 100%;
  .seatType{
    padding: 12px @pagePadding;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin-left: 42px;
    padding-left: 80px;
    .priceItem{
      padding: 0 12px;
      display: flex;
      align-items: center;
    }
    .icon{
      width: 26px;
      height: 26px;
      border-radius: 5px;
      border: 2px solid var(--seatTypeColor);
      margin-right: 12px;
      background-color: var(--color-box-baground);
    }
    .price {
      font-size: 24px;
      color: @colorMain;
    }
    .lineThrough{
      margin-left: 8px;
      text-decoration: line-through;
      font-size: 20px;
      color: @colorNormal;
    }
  }
}


.content{
  flex: 1;
  overflow: hidden;
  .scrollY{
    height: 100%;
    position: relative;
  }
  .rowGuid{
    top:162rpx;
    background-color: rgb(113, 113, 113);
    position: absolute;
    z-index: 1;
    // top: @picScreenHeight + @picCenterHeight + 70;
    // left: 10px;
    width: 30px;
    color: var(--color-primary);
    border-radius: 100px;
    opacity: 0.5;

    .guidItem {
      height: @seatSize;
      width: 100%;
      text-align: center;
    }
  }
}

.scrollContent{
  width: max-content;
  margin: 0 auto;
  padding-bottom: @pagePadding;
  .picScreen{
    width: 80vw;
    height: @picScreenHeight;
    display: block;
    margin: 0 auto;
  }
  .picCenter{
    display: block;
    width: 110px;
    height: @picCenterHeight;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}
.seatContent{
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: max-content;
  .seatRow{
    display: flex;
    padding: 0 @seatRowPaddingNum * 1px;
    height: @seatSize;
  }
  .seatItemBox{
    @paddingSize: 4px;
    flex-shrink: 0;
    width: @seatSize;
    height: 100%;
    box-sizing: border-box;
    padding: @paddingSize;
    .seatItem{
      width: 100%;
      height: 100%;
      border: 2px solid transparent;
      box-sizing: border-box;
      border-radius: 6px;
      &.soldOut {
        background-color: @colorMain;
        border-color: @colorMain;
      }
      &.validSeat {
        background-color: var(--color-box-baground);
        border-color: var(--seatColor);
      }
      &.overPriceSeat {
        background-color: #999;
        border-color: #999;
        opacity: 0.7;
      }
      &.loveSeat{
        &.overPriceSeat.loveRight,
        &.soldOut.loveRight {
          border-left-color: white;
        }
        &.loveLeft {
          border-right-color: transparent;
          transform: translateX(@paddingSize + 1px);
        }
        &.loveRight {
          border-left-style: dashed;
          transform: translateX(-@paddingSize);
        }
      }
      &.selected{
        background-color: #39c86f;
        border-color: #52e48a;
      }
    }
  }
}

.seatTypeGuid{
  display: flex;
  justify-content: center;
  padding: 28px 0;

  .seatTypeItem{
    padding: 0 0 12px 0;
    display: flex;
    align-items: center;
    .icon{
      width: 26px;
      height: 26px;
      border-radius: 5px;
      margin-right: 12px;
      background-color: var(--color-box-baground);
      border: 2px solid #eee;
    }
    .text {
      font-size: 24px;
      color: @colorNormal;
    }
    &.soldOut .icon{
      background-color: @colorMain;
    }
    &.loveSeat .icon{
      &:not(.iconRight){
        transform: translateX(7px);
        border-right: none;
      }
      &.iconRight{
        transform: translateX(-6px);
        border-left-style: dashed;
      }
    }
  }
  
}

:export{
  seatSizeNum: @seatSizeNum;
  seatRowPaddingNum: @seatRowPaddingNum;
}